//package cn.edu.zut.score.config;
//
//import cn.edu.zut.score.core.cache.RedisCache;
//import cn.edu.zut.score.filter.ApiFilter;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.web.servlet.FilterRegistrationBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * @author zby
// * @date 2021/08/10
// */
//@Configuration
//public class FilterConfig {
//
//    @Autowired
//    private RedisCache redisCache;
//
//    @Bean
//    public FilterRegistrationBean myApiFilter() {
//        FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean();
//        filterRegistrationBean.setFilter(new ApiFilter(redisCache));
//        return filterRegistrationBean;
//    }
//}
